package com.example.administrator.myapplication;

import android.icu.text.UnicodeSetSpanner;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
       initView();
       initData();
       initEvent();
    }
    private void initView(){
        CommonDialog commonDialog = new CommonDialog(MainActivity.this);
        commonDialog.setTitle("提示");
        commonDialog.setContent("确定删除当前信息");
        commonDialog.setPositive("何盈");
        commonDialog.setNegtive("201965110415");
        commonDialog.setOnClickBottomListener(new CommonDialog.OnClickBottomListener() {
            @Override
            public void onLeftBottomClick() {
                Toast.makeText(MainActivity.this,"何盈", Toast.LENGTH_SHORT);
            }

            @Override
            public void onRightBottomClick() {
              Toast.makeText(MainActivity.this,"201965110415",Toast.LENGTH_SHORT);
            }
        });
    }
    private void initData(){

    }
    private void initEvent(){

    }
   }

